package api.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="ot_api_collect_col",description="汇总列")
public class ApiCollectColumn extends Model {
    @LinkTableMeta(name="collect_oid",table= ApiCollect.class,description="所属汇总表")
    private ApiCollect collect;

    @FieldMeta(name="sort",type=FieldType.INT,description="排序")
    private Integer sort;
    @FieldMeta(name="field",type= FieldType.STRING,length=300,description="字段")
    private String field;//sql字段
    @FieldMeta(name="alias",type= FieldType.STRING,length=30,description="别名")
    private String alias;
    @FieldMeta(name="title",type= FieldType.STRING,length=20,description="标题")
    private String title;//标题
    @FieldMeta(name="group_title",type= FieldType.STRING,length=100,description="标题组|英文逗号分隔")
    private String groupTitle;//标题组
    @FieldMeta(name="width",type= FieldType.INT,description="列宽")
    private Integer width;//宽

    @FieldMeta(name="type",type= FieldType.STRING,length=10,description="类型",dictOption = "STRING:字符,DATE:日期,NUMBER:数字")
    private String type;
    @FieldMeta(name="number_format",type= FieldType.STRING,length=20,description="数字格式")
    private String numberFormat;
    @FieldMeta(name="date_format",type= FieldType.STRING,length=20,description="日期格式")
    private String dateFormat;
    @FieldMeta(name="line_clamp",type= FieldType.INT,description="最大行显")
    private Integer lineClamp;

    @FieldMeta(name="is_order",type= FieldType.STRING, description="排序",dictOption = "Y:开启,N:关闭,A:默认升序,D:默认降序")
    private String isOrder;
    @FieldMeta(name="is_count",type= FieldType.STRING, description="汇总",dictOption = "N:关闭,A:合计,B:平均,C:最小,D:最大")
    private String isCount;
    @FieldMeta(name="is_filter",type= FieldType.STRING, description="过滤",dictOption = "Y:开启,N:关闭")
    private String isFilter;
    @FieldMeta(name="text_align",type= FieldType.STRING, description="对齐",dictOption = "L:左,R:右,C:居中")
    private String textAlign;

    @FieldMeta(name="dict",type= FieldType.STRING,length=100,description="字典")
    private String dict;

    public String getDict() {
        return dict;
    }

    public void setDict(String dict) {
        this.dict = dict;
    }

    public Integer getLineClamp() {
        return lineClamp;
    }

    public void setLineClamp(Integer lineClamp) {
        this.lineClamp = lineClamp;
    }

    public String getIsOrder() {
        return isOrder;
    }

    public void setIsOrder(String isOrder) {
        this.isOrder = isOrder;
    }

    public String getIsCount() {
        return isCount;
    }

    public void setIsCount(String isCount) {
        this.isCount = isCount;
    }

    public String getIsFilter() {
        return isFilter;
    }

    public void setIsFilter(String isFilter) {
        this.isFilter = isFilter;
    }

    public String getTextAlign() {
        return textAlign;
    }

    public void setTextAlign(String textAlign) {
        this.textAlign = textAlign;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNumberFormat() {
        return numberFormat;
    }

    public void setNumberFormat(String numberFormat) {
        this.numberFormat = numberFormat;
    }

    public String getDateFormat() {
        return dateFormat;
    }

    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public ApiCollect getCollect() {
        return collect;
    }

    public void setCollect(ApiCollect collect) {
        this.collect = collect;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getGroupTitle() {
        return groupTitle;
    }

    public void setGroupTitle(String groupTitle) {
        this.groupTitle = groupTitle;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }
}
